<!DOCTYPE html>
<html lang="ch">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
           
            height: 30px;
            font-size: 20px;
             /* 强制文字一行内显示 */
            white-space: nowrap;
           overflow: hidden;
            /* steps()---步长 */
            animation: w 4s steps(10) forwards;
        }
        @keyframes w {
            0% {
                width: 0;
            }
            100% {
                width: 200px;
            }
        }
    </style>
</head>
<body>
    <div>七月份的尾巴你是狮子</div>
</body>
</html>